package viewTest;

import java.awt.*;
import javax.swing.*;

public class BrettZeichnen 
{
	private static Brett b = new Brett();
	public static synchronized void drawBrett (Graphics g)
	{
		int [][] feld = new int [8][8];
		for (int i=0;i<4;i++)
			for (int j=0;j<4;j++)
			{
				feld[0+2*i][1+2*j] = 1;
				feld[1+2*i][0+2*j] = 1;
			}

		for (int zei = 0; zei < 8; zei++)
			for (int spa = 0; spa < 8; spa++) {
				g.drawRect(50 + zei * 50, 50 + spa * 50, 50, 50);
				if (feld[zei][spa] == 1)
					g.fillRect(50 + zei * 50, 50 + spa * 50, 50, 50);
			}
	}

}
